from rest_framework import serializers

import PersonManage.models


class DriverSerializer(serializers.ModelSerializer):

    class Meta:
        model = PersonManage.models.Driver
        fields = ('name', 'sex', 'id', 'EntryTime', 'Academic', 'Experience', 'phoneNum', 'DriverType', 'StopTime',
                  'ComplainedTimes', 'ManageID')


class MessageSerializer(serializers.ModelSerializer):

    class Meta:
        model = PersonManage.models.Message
        fields = "__all__"
